package com.example.web.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import javax.persistence.*;

@Entity(name = "xw_farm_collectinfo")
public class XwFarmCollectinfo {

    /**
     * 农家收藏id
     */
    @Column(name = "farm_collect_id")
    private Integer farmCollectId;

    /**
     * 商家加密id
     */
    @Column(name = "business_encryptId")
    private String businessEncryptid;

    /**
     * 农家乐加密id（店铺id）
     */
    @Column(name = "farm_encryptId")
    private String farmEncryptid;

    /**
     * 农家乐类型（农家乐，渔家乐……）只能是其中一个
     */
    @Column(name = "farmTypeName")
    private String farmtypename;

    /**
     * 农家乐类型加密id
     */
    @Column(name = "farmType_encryptId")
    private String farmtypeEncryptid;

    /**
     * 游客加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 游客用户名
     */
    @Column(name = "farm_collect_username")
    private String farmCollectUsername;

    /**
     * 收藏时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_collect_createtime")
    private Date farmCollectCreatetime;

    public XwFarmCollectinfo(){

    }

    public XwFarmCollectinfo(String businessEncryptid, String farmEncryptid, String farmtypename, String farmtypeEncryptid, String userEncryptid, String farmCollectUsername, Date farmCollectCreatetime) {
        this.businessEncryptid = businessEncryptid;
        this.farmEncryptid = farmEncryptid;
        this.farmtypename = farmtypename;
        this.farmtypeEncryptid = farmtypeEncryptid;
        this.userEncryptid = userEncryptid;
        this.farmCollectUsername = farmCollectUsername;
        this.farmCollectCreatetime = farmCollectCreatetime;
    }

    /**
     * 获取农家收藏id
     *
     * @return farm_collect_id - 农家收藏id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getFarmCollectId() {
        return farmCollectId;
    }

    /**
     * 设置农家收藏id
     *
     * @param farmCollectId 农家收藏id
     */
    public void setFarmCollectId(Integer farmCollectId) {
        this.farmCollectId = farmCollectId;
    }

    /**
     * 获取商家加密id
     *
     * @return business_encryptId - 商家加密id
     */
    public String getBusinessEncryptid() {
        return businessEncryptid;
    }

    /**
     * 设置商家加密id
     *
     * @param businessEncryptid 商家加密id
     */
    public void setBusinessEncryptid(String businessEncryptid) {
        this.businessEncryptid = businessEncryptid;
    }

    /**
     * 获取农家乐加密id（店铺id）
     *
     * @return farm_encryptId - 农家乐加密id（店铺id）
     */
    public String getFarmEncryptid() {
        return farmEncryptid;
    }

    /**
     * 设置农家乐加密id（店铺id）
     *
     * @param farmEncryptid 农家乐加密id（店铺id）
     */
    public void setFarmEncryptid(String farmEncryptid) {
        this.farmEncryptid = farmEncryptid;
    }

    /**
     * 获取农家乐类型（农家乐，渔家乐……）只能是其中一个
     *
     * @return farmTypeName - 农家乐类型（农家乐，渔家乐……）只能是其中一个
     */
    public String getFarmtypename() {
        return farmtypename;
    }

    /**
     * 设置农家乐类型（农家乐，渔家乐……）只能是其中一个
     *
     * @param farmtypename 农家乐类型（农家乐，渔家乐……）只能是其中一个
     */
    public void setFarmtypename(String farmtypename) {
        this.farmtypename = farmtypename;
    }

    /**
     * 获取农家乐类型加密id
     *
     * @return farmType_encryptId - 农家乐类型加密id
     */
    public String getFarmtypeEncryptid() {
        return farmtypeEncryptid;
    }

    /**
     * 设置农家乐类型加密id
     *
     * @param farmtypeEncryptid 农家乐类型加密id
     */
    public void setFarmtypeEncryptid(String farmtypeEncryptid) {
        this.farmtypeEncryptid = farmtypeEncryptid;
    }

    /**
     * 获取游客加密id
     *
     * @return user_encryptId - 游客加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置游客加密id
     *
     * @param userEncryptid 游客加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取游客用户名
     *
     * @return farm_collect_username - 游客用户名
     */
    public String getFarmCollectUsername() {
        return farmCollectUsername;
    }

    /**
     * 设置游客用户名
     *
     * @param farmCollectUsername 游客用户名
     */
    public void setFarmCollectUsername(String farmCollectUsername) {
        this.farmCollectUsername = farmCollectUsername;
    }

    /**
     * 获取收藏时间
     *
     * @return farm_collect_createtime - 收藏时间
     */
    public Date getFarmCollectCreatetime() {
        return farmCollectCreatetime;
    }

    /**
     * 设置收藏时间
     *
     * @param farmCollectCreatetime 收藏时间
     */
    public void setFarmCollectCreatetime(Date farmCollectCreatetime) {
        this.farmCollectCreatetime = farmCollectCreatetime;
    }

    @Override
    public String toString() {
        return "XwFarmCollectinfo{" +
                "farmCollectId=" + farmCollectId +
                ", businessEncryptid='" + businessEncryptid + '\'' +
                ", farmEncryptid='" + farmEncryptid + '\'' +
                ", farmtypename='" + farmtypename + '\'' +
                ", farmtypeEncryptid='" + farmtypeEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", farmCollectUsername='" + farmCollectUsername + '\'' +
                ", farmCollectCreatetime=" + farmCollectCreatetime +
                '}';
    }
}